package top.laoshuzi.cloudplatform.tools;


import java.io.File;

import top.laoshuzi.cloudplatform.camera.CameraConfig;

/**
 * Created by Mouse on 2017/5/5.
 */

public class FileUtil {

    private static File picFileDir;
    private static File mvFileDir;

    public static File getPicFileDir() {
        if (picFileDir == null) {
            synchronized (FileUtil.class) {
                picFileDir = new File(CameraConfig.PIC_PATH);
            }
        }
        return picFileDir;
    }

    public static File getMvFileDir() {
        if (mvFileDir == null) {
            synchronized (FileUtil.class) {
                mvFileDir = new File(CameraConfig.REC_PATH);
            }
        }
        return mvFileDir;
    }
}
